package com.example.pcl.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(name = "公告请求数据")
public class AnnouncementRequestDTO {

    @Schema(description = "公告标题", deprecated = true , example = "系统维护通知")
    @NotBlank(message = "公告标题不能为空")
    private String title;

    @Schema(description = "公告内容", deprecated = true , example = "系统将在今晚10点到明早6点进行维护")
    @NotBlank(message = "公告内容不能为空")
    private String content;

    @Schema(description = "是否展示公告标志", example = "1")
    private Integer displayFlag;
}

